
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改用户</title>
</head>
<body>
<h3>修改用户</h3>
<hr/>
<form th:action="@{/users/updateUser}" method="post">
    <input type="hidden" name="id" th:value="${users.id}">
    姓名：<input type="text" name="nam" th:value="${users.nam}"/><br/>
    密码：<input type="text" name="pwd" th:value="${users.pwd}"/><br/>
    性别：
    <label class="radio-inline">
        <input type="radio" name="sex" th:field="*{users.sex}" value="1" checked>男
    </label>
    <label class="radio-inline">
        <input type="radio" name="sex" th:field="*{users.sex}" value="0">女
    </label><br>
    生日：<input name="birth" type="text" th:value="${#dates.format(users.birth,'yyyy-MM-dd')}"/><br/>    <input type="submit" value="确定"/><br/>
</form>
</body>
</html>
